package org.javaboy.demo;

import org.javaboy.demo.config.JavaConfig;
import org.javaboy.demo.service.UserService;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.io.IOException;

public class Demo01 {
    public static void main(String[] args) throws IOException {
        AnnotationConfigApplicationContext ctx = new AnnotationConfigApplicationContext(JavaConfig.class);
        UserService us = ctx.getBean(UserService.class);
        us.update1();
    }
}
